package com.s20y.generator.mapper;

import com.s20y.generator.entity.Column;
import com.s20y.generator.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IndexMapper {
    Table getTable(@Param("tableName") String tableName);

    List<Table> queryTables();

    List<Column> queryColumnsByTable(@Param("tableName") String tableName);
}